FROM registry.cn-hangzhou.aliyuncs.com/xiaoyilin/maven:3.9.11-java8
ADD hudi-1.0.2.src.tgz /usr/local/
WORKDIR /usr/local/hudi-1.0.2
RUN mvn clean package -DskipTests -Dspark3.5 -Dscala-2.12 -Dflink1.20

# https://hudi.apache.org/releases/release-1.0.0
# Apache Hudi 1.0.2 Spark3.5和Flink1.20支持
# https://dlcdn.apache.org/flink/
# https://dlcdn.apache.org/flink/flink-1.20.1/
# docker build -t registry.cn-hangzhou.aliyuncs.com/xiaoyilin/hudi:1.0.2 .
# docker push registry.cn-hangzhou.aliyuncs.com/xiaoyilin/hudi:1.0.2
# docker run -it registry.cn-hangzhou.aliyuncs.com/xiaoyilin/hudi:1.0.2 bash
# https://github.com/apache/hudi
# hudi-spark3.5-bundle_2.12
# hudi-flink1.19-bundle

#WSL
# docker run --log-opt max-size=100m --log-opt max-file=5 -it registry.cn-hangzhou.aliyuncs.com/xiaoyilin/hudi:1.0.2 bash
# docker cp 29c4d3a33c6f:/usr/local/hudi-1.0.2/packaging/hudi-spark-bundle/target/hudi-spark3.5-bundle_2.12-1.0.2.jar /mnt/d/
# docker cp 29c4d3a33c6f:/usr/local/hudi-1.0.2/packaging/hudi-flink-bundle/target/hudi-flink1.20-bundle-1.0.2.jar /mnt/d/